types: Move widget types into gtktypes.h
authorBenjamin Otte <otte@redhat.com>
Sat, 3 Mar 2012 17:48:56 +0000 (18:48 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 3 Mar 2012 18:45:03 +0000 (19:45 +0100)
gtk/gtktypes.h
gtk/gtkwidget.h
gtk/gtkwidgetpath.h

index 24a64f0faca155f09ce476d5db3aeb11ddea7f38..67554557b998bb3a7a7796924c8e1f2f26b5c387 100644 (file)
 
 G_BEGIN_DECLS
 
+typedef struct _GtkClipboard          GtkClipboard;
+typedef struct _GtkRequisition        GtkRequisition;
+typedef struct _GtkSelectionData       GtkSelectionData;
+typedef struct _GtkTooltip             GtkTooltip;
+typedef struct _GtkWidget              GtkWidget;
+typedef struct _GtkWidgetPath          GtkWidgetPath;
+typedef struct _GtkWindow              GtkWindow;
 
 G_END_DECLS
 
index 5a4cdbcbffcd721c29e4a5fabc31ff93c9fc4a8b..c234d4d8dd83e1212c415dfde0b4a87191c4abc8 100644 (file)
@@ -35,7 +35,7 @@
 #include <gtk/gtkborder.h>
 #include <gtk/gtksettings.h>
 #include <gtk/gtkstylecontext.h>
-#include <gtk/gtkwidgetpath.h>
+#include <gtk/gtktypes.h>
 #include <atk/atk.h>
 
 G_BEGIN_DECLS
@@ -59,17 +59,10 @@ typedef enum
 
 #define GTK_TYPE_REQUISITION              (gtk_requisition_get_type ())
 
-/* forward declaration to avoid excessive includes (and concurrent includes)
- */
-typedef struct _GtkRequisition        GtkRequisition;
-typedef struct _GtkSelectionData       GtkSelectionData;
 typedef struct _GtkWidgetPrivate       GtkWidgetPrivate;
 typedef struct _GtkWidgetClass        GtkWidgetClass;
 typedef struct _GtkWidgetClassPrivate  GtkWidgetClassPrivate;
 typedef struct _GtkWidgetAuxInfo       GtkWidgetAuxInfo;
-typedef struct _GtkClipboard          GtkClipboard;
-typedef struct _GtkTooltip             GtkTooltip;
-typedef struct _GtkWindow              GtkWindow;
 
 /**
  * GtkAllocation:
index a8127e47fe1488b37cdc555d05f0da619980f66b..4c2c674ce75d71e372be5ddf109564665a35e8b4 100644 (file)
 #include <glib-object.h>
 #include <gdk/gdk.h>
 #include <gtk/gtkenums.h>
+#include <gtk/gtktypes.h>
 
 G_BEGIN_DECLS
 
-typedef struct _GtkWidgetPath GtkWidgetPath;
-
-/* We make this forward declaration here, since gtkwidget.h includes us.
- */
-typedef struct _GtkWidget      GtkWidget;
-
 #define GTK_TYPE_WIDGET_PATH (gtk_widget_path_get_type ())
 
 GType           gtk_widget_path_get_type            (void) G_GNUC_CONST;